package com.wangshidai.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data  //getXXX() setXXX()  toString()
@NoArgsConstructor  //无参数构造方法
@AllArgsConstructor //有参数构造方法
public class Emp {
    private Integer eid;
    private String   ename;
    private String   sex;
    private Date birthday;
    private String   jiguan;
    private String  zhuanye ;
    private Double sale ;
    private Integer did;

    //配置一对一的关系
    private Dept dept;

}
